draw2d.XMLSerializer_01=function(){};
draw2d.XMLSerializer_01.prototype.type="XMLSerializer_01";
draw2d.XMLSerializer_01.prototype.toXML=function(_573e){var xml="&lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\"?&gt;<br>";
xml=xml+"&lt;form>";
var _5740=_573e.getFigures();
for(var i=0;i<_5740.getSize();i++){
	var _5742=_5740.get(i);
	//xml=xml+"&lt;"+_5742.type+"\"&gt;<br>";
	xml=xml+"&lt;"+_5742.type+" x=\""+_5742.getX()+"\" y=\""+_5742.getY()+"\" id=\""+_5742.getId()+"\"&gt;<br>";
	//xml=xml+this.getPropertyXML(_5742,"   ");
	//if(_5742 instanceof draw2d.CompartmentFigure){
	//	xml=xml+this.getChildXML(_5742,"   ");
	//}
	if(_5742 instanceof draw2d.End){
		xml=xml+this.getChildXML(_5742,"   ");
	}
	if(_5742 instanceof draw2d.Start){
		xml=xml+this.getChildXML(_5742,"   ");
	}
	xml=xml+"&lt;/"+_5742.type+"&gt;<br>";
}
var lines = _573e.getLines();
for(var i=0;i<lines.getSize();i++){
        var line=lines.get(i);
        xml=xml+"&lt;"+line.type+"\"&gt;<br>";
        var source = line.getSource();
	var target = line.getTarget();
	xml=xml+"&lt;source name="+source.getName()+"/&gt;<br>";
	xml=xml+"&lt;target name="+target.getName()+"/&gt;<br>";
        xml=xml+"&lt;/"+line.type+"\"&gt;<br>";
}
xml=xml+"&lt;/form&gt;<br>";
return xml;
};

draw2d.XMLSerializer_01.prototype.getChildXML=function(_5743,_5744){var xml="";
var _5746=_5743.getPorts();
for(var i=0;i<_5746.getSize();i++){
	var _5748=_5746.get(i);
	xml=xml+_5744+"&lt;"+_5748.type+" name=\""+_5748.getName()+"\"&gt;<br>";
	//xml=xml+_5744+"&lt;"+_5748.type+" x=\""+_5748.getX()+"\" y=\""+_5748.getY()+"\" id=\""+_5748.getId()+"\"&gt;<br>";
	//xml=xml+this.getPropertyXML(_5748,"   "+_5744);
	//if(_5748 instanceof draw2d.CompartmentFigure){
	//	xml=xml+this.getChildXML(_5748,"   "+_5744);
	//}
//	if(_5748 instanceof draw2d.Start){
//		xml=xml+this.getChildXML(_5748,"   "+_5744);
//	}
//	if(_5748 instanceof draw2d.End){
//		xml=xml+this.getChildXML(_5748,"   "+_5744);
//	}
	xml=xml+_5744+"&lt;/"+_5748.type+"&gt;<br>";
}
return xml;
};

draw2d.XMLSerializer_01.prototype.getPropertyXML=function(_5749,_574a){
var xml="";
var _574c=_5749.getProperties();
for(key in _574c){
	var value=_574c[key];
	if(value!=null){
		xml=xml+_574a+"&lt;property name=\""+key+"\" value=\""+value+"\"&gt;<br>";
	}
}
return xml;
};

